<h1>Assign to Resolvers</h1>
<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'answer-form',
	'enableAjaxValidation'=>false,
	'htmlOptions'=>array('class'=>'form-horizontal'),
)); ?>
	<?php echo $form->errorSummary($model,'','',array('class'=>'alert alert-error')); ?>
	<div class="control-group">
	   <?php echo $form->labelEx($model,'issueID',array('class'=>'control-label')); ?>	 
	   <?php echo $model->issueID ?>       
 	</div>
 	
 	<div class="control-group">
	   <?php echo $form->labelEx($model,'thread_number',array('class'=>'control-label')); ?>	 
	   <?php echo $model->thread_number; ?>       
 	</div> 	
 	
 	<div class="control-group">
	   <?php echo "Chọn người giải"?>
	   <div class="clearfix"></div>	 
	   <?php
	   	$list = Issue::model()->getUsers(3,array(1,3));
	   	if(!empty($list)) {
	   		echo '<table class="table table-striped table-hover table-condensed success">';
	   		foreach($list as $key=>$value) {
	   			echo '<tr>';
	   			echo '<td>'.$value.'</td>
	   				<td>'.User::model()->getUserStatus($key).'</td>
	   				<td><input type="radio" value="'.$key.'" name="Answer[resolver]"</td>';
	   			echo '</tr>';
	   		}
	   		echo '</table>';
	   	} 
	   ?>
 	</div> 	
 	<?php echo CHtml::submitButton('Assign', array('class'=>'btn btn-success','name'=>'assign')); ?>
<?php $this->endWidget(); ?>